package com.health.entity;

public enum MotionGrade {

    IDEAL(-1000, -10),
    GOOD(-10, -5),
    MODERATELY_UNHEALTHY(-5, 0),
    MILDLY_UNHEALTHY(1, 5),
    SERIOUSLY_UNHEALTHY(6, 10),
    HIGH_RISK(10, Double.MAX_VALUE);

    private final double minScore;
    private final double maxScore;

    MotionGrade(double minScore, double maxScore) {
        this.minScore = minScore;
        this.maxScore = maxScore;
    }

    public boolean includesScore(double score) {
        return score >= minScore && score <= maxScore;
    }
}
